import { instance as request } from "../utils/request";

export const addrole = (data: any) => {
  return request({
    url: `/addrole`,
    method: "post",
    data,
  });
};
export const rolelist = () => {
  return request({
    url: `/rolelist`,
    method: "get",
  });
};

export const delrole = (data: any) => {
  return request({
    url: `/delrole`,
    method: "post",
    data,
  });
};
export const getrole = () => {
  return request({
    url: `/getrole`,
    method: "post",
    data: {
      test: 1
    },
    params: {
      wtf: 1
    }
  });
};

export const getorole = (id: string) => {
  return request({
    url: `/getorole`,
    method: "post",
    data: {
      id
    }
  });
};



export const putrole = (data: any) => {
  return request({
    url: `/putrole`,
    method: "post",
    data,
  });
};
